package com.deve.pig.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.deve.pig.model.Priv;
import com.deve.pig.model.RolePrivilege;
import com.deve.pig.model.RolePrivilegeExample;

public interface RolePrivilegeMapper {
    int countByExample(RolePrivilegeExample example);

    int deleteByExample(RolePrivilegeExample example);

    int deleteByPrimaryKey(Long id);

    int insert(RolePrivilege record);

    int insertSelective(RolePrivilege record);

    List<RolePrivilege> selectByExample(RolePrivilegeExample example);

    RolePrivilege selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") RolePrivilege record, @Param("example") RolePrivilegeExample example);

    int updateByExample(@Param("record") RolePrivilege record, @Param("example") RolePrivilegeExample example);

    int updateByPrimaryKeySelective(RolePrivilege record);

    int updateByPrimaryKey(RolePrivilege record);
    
    
 // 根据角色ID查询出所拥有的权限集合
 	List<Priv> selectPrivsByRoleId(Long id);
}